import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import {MainPageComponent} from './main-page/main-page.component'
// import {MainNavComponent} from './main-nav/main-nav.component';

const routes: Routes = [
  {
    path: "login",
    loadChildren: ()=> import('./login/login.module').then(m=>m.LoginModule)
  }, 
  {
    path: "call",
    loadChildren: ()=> import('./call-app/call-app.module').then(m=>m.CallAppModule)
  }, 
  {
    path: "",
    component: MainPageComponent
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
